package com.xq.service.impl;

import com.xq.dao.PeopleDao;
import com.xq.pojo.People;
import com.xq.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xq
 * @version 1.0
 * @date 2021/4/6 8:47
 * @description 用户业务层接口实现层
 */
// 此注解表示service层的对象
@Service
public class PeopleServiceImpl implements PeopleService {

    // 自动装配PeopleDao对象
    @Autowired
    private PeopleDao peopleDao;

    @Override
    public People getPeopleById(Integer id) {
        return peopleDao.getUserById(id);
    }
}
